package com.xyq.system.domain.question.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class QuestionEditDTO {
    private Long questionId ;

    @NotEmpty(message = "题目标题不能为空")
    private String title ;
    @Min(value = 1 , message = "难度设置错误")
    @Max(value = 3 , message = "难度设置错误")
    private Integer difficulty ;

    @NotNull(message = "时间限制不能为空")
    private Integer timeLimit ; // 时间限制

    @NotNull(message = "空间限制不能为空")
    private Integer spaceLimit ; // 空间限制

    @NotEmpty(message = "题目内容不能为空")
    private String content ; //题目内容

    private String questionCase ; // 题目示例
    private String defaultCode ; // 默认代码块
    private String mainFuc ;  // 默认main方法
}
